package com.csc.data.model;

import cn.hutool.core.annotation.Alias;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.*;

import java.time.LocalDateTime;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * @author liuchuang
 * @version 1.0
 * @date 2023/5/24 9:51
 * @modify
 */
@Entity
@Table(name = "user_wx")
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class UserWx {
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id")
    Integer id;

    @Column(name = "phone")
    @Alias("phone")
    String phone;

    @Column(name = "password")
    String password;

    @Column(name = "appId")
    String appId;

    @Column(name = "openId")
    String openId;


    @Column(name = "unionId")
    String unionId;

    @Column(name = "nickname")
    String nickname;

    @Column(name = "avatarUrl")
    String avatarUrl;

    @Column(name = "gender")
    String gender;

    @Column(name = "city")
    @Alias("city")
    String city;

    @Column(name = "province")
    String province;

    @Column(name = "country")
    String country;

    @Column(name = "status")
    Integer status;

    @Column(name = "type")
    Integer type;

    @Column(name = "source")
    String source;

    @Column(name = "addDate")
    LocalDateTime addDate;

    @Column(name = "modifyDate")
    LocalDateTime modifyDate;

    @Column(name = "isTw")
    Integer isTw;

    @Column(name = "iswy")
    Integer iswy;

    @Column(name = "wxcity")
    String wxcity;

    @Column(name = "wxproject")
    String wxproject;

    @Column(name = "wxphone")
    String wxphone;


    @Column(name = "wxname")
    String wxname;

    @Column(name = "wxroomNo")
    String wxroomNo;

    @Column(name = "wxattribute")
    String wxattribute;

    @Column(name = "birth_date")
    String birthDate;


}
